<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/jquery.shapeshift.min.js"></script>
<div class="view-header clearfix">
    <div class="head-icon plus" title="添加用户" ng-click="addShop()">
        <i class="fa fa-plus"></i>添加门店
    </div>
</div>
<div class="view-content">
    <div class="view-left col-sm-6">
        <div class="view-left-search">
            <i class="fa fa-search"></i>
            <input type="text" placeholder='门店' ng-model="ranks_shop">
        </div>
        <div class="view-left-block">
            <div class="view-left-item t-head clearfix">
                <div class="double"><i class="fa fa-id-card-o"></i>门店</div>
                <div class="double"><i class="fa fa-id-card-o"></i>介绍</div>
                <div class="icon"><i class="fa fa-cog"></i>操作</div>
            </div>
            <div class="item-scroll-box">
                <div class="view-left-item t-body clearfix"
                     ng-repeat="one in shop_all|orderBy:['name'] | filter:ranks_shop"
                     ng-click='shop_list(one,shop_all)'
                     ng-class="{true: 'active', false: ''}[one.isActive]">
                    <div title="{{one.name}}" class="double elip" ng-bind="one.name"></div>
                    <div title="{{one.desc}}" class="double elip" ng-bind="one.desc"></div>
                    <div title="删除" class="icon fa fa-trash delete" ng-click="del_shop(one,$event)"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="view-right col-sm-6 col-sm-offset-6">
        <div class="view-right-block">
            <div ng-show="isEdit" class="view-right-title">
                修改门店<span class='color-show' ng-bind="shop.name?'&nbsp'+shop.name+'&nbsp':''"></span>信息
            </div>
            <div ng-show="!isEdit" class="view-right-title">
                添加门店
            </div>
            <!-- 修改/新增用户 -->
            <div class="new-content">
                <div class="new-item clearfix">
                    <span class="span">名称</span>
                    <input title="{{shop.name}}" class="input input-uid" type="text" ng-model="shop.name"/>
                </div>
                <div class="new-item clearfix">
                    <span class="span">全称</span>
                    <input title="{{shop.full_name}}" class="input" type="text" ng-model="shop.full_name">
                </div>
                <div class="new-item clearfix">
                    <span class="span">介绍</span>
                    <div title="{{shop.desc}}" class="contentCls" ng-model="shop.desc" contenteditable="true"></div>
                </div>
                <div class="new-item clearfix">
                    <span class="span">类型</span>
                    <select chosen
                            disable-search="true"
                            width="'200px'"
                            data-placeholder="选择类型"
                            ng-model="shop.type"
                            ng-options="one.id as one.name for one in type">
                        <option value=""></option>
                    </select>
                </div>
                <div class="new-item clearfix">
                    <button class="sm-btn sm-btn-green sm-btn-m save" ng-click="shop_submit()">保&nbsp&nbsp存</button>
                </div>

            </div>
        </div>
        <!--<div class="view-right-block">-->
            <!--&lt;!&ndash; <div class="view-right-title" ng-show="add_shop_title">新增门店</div> &ndash;&gt;-->

            <!--&lt;!&ndash; 修改门店 &ndash;&gt;-->
            <!--<div class="new-content">-->
                <!--<div class="new-item">-->
                    <!--<span>门店名称</span>-->
					<!--<input type="text" ng-model="revise_param.name">-->
                <!--</div>-->
				<!--<div class="new-item">-->
					<!--<span>门店全称</span>-->
					<!--<input type="text" ng-model="revise_param.full_name">-->
				<!--</div>-->
                <!--<div class="new-item">-->
                    <!--<span>门店介绍</span>-->
					<!--<input type="text" ng-model='revise_param.desc'>-->
                <!--</div>-->
                <!--<div class="new-item">-->
                    <!--<span>门店ID</span>-->
					<!--<input type="text" ng-model='revise_param.sn'>-->
                <!--</div>-->
                <!--<div class="new-item">-->
                    <!--<span>门店类型</span>-->
					<!--<select ng-model='revise_param.type'>-->
						<!--<option value="0">普通</option>-->
						<!--<option value="1">计算公式1</option>-->
						<!--<option value="2">计算公式2</option>-->
						<!--<option value="9">管理</option>-->
					<!--</select>-->
                <!--</div>-->
                <!---->
            <!--</div>-->
        <!--</div>-->
    </div>
</div>


<!-- add -->
<!--<div class="data-overlay" ng-show='shop_add'>-->
    <!--<div class="overlay-container">-->
        <!--<div class="overlay-header">添加门店</div>-->
        <!--<div ng-form name="form_add" novalidate="novalidate">-->
            <!--<div class="overlay-content">-->
                <!--<div class="overlay-column">-->
                    <!--<div class="overlay-item">-->
                        <!--<span class="overlay-name">门店名称</span>-->
                        <!--<input type="text" ng-model="param.name">-->
                    <!--</div>-->
					<!--<div class="overlay-item">-->
						<!--<span class="overlay-name">门店全称</span>-->
						<!--<input type="text" ng-model="param.full_name">-->
					<!--</div>-->
                    <!--<div class="overlay-item">-->
                        <!--<span class="overlay-name">门店介绍</span>-->
                        <!--<textarea ng-model="param.desc"></textarea>-->
                    <!--</div>-->
                    <!--<div class="overlay-item">-->
                        <!--<span class="overlay-name">门店类型</span>-->
                        <!--<select ng-model='param.type'>-->
							<!--<option value="0">普通</option>-->
							<!--<option value="1">计算公式1</option>-->
							<!--<option value="2">计算公式2</option>-->
							<!--<option value="9">管理</option>-->
						<!--</select>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->


